import request from '@/utils/request'

// 查询养护方案计划列表
export function listAllmaintenance(query) {
  return request({
    url: '/biz/allmaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询养护方案计划详细
export function getAllmaintenance(allMaintenanceId) {
  return request({
    url: '/biz/allmaintenance/' + allMaintenanceId,
    method: 'get'
  })
}

// 新增养护方案计划
export function addAllmaintenance(data) {
  return request({
    url: '/biz/allmaintenance',
    method: 'post',
    data: data
  })
}

// 修改养护方案计划
export function updateAllmaintenance(data) {
  return request({
    url: '/biz/allmaintenance',
    method: 'put',
    data: data
  })
}

// 删除养护方案计划
export function delAllmaintenance(allMaintenanceId) {
  return request({
    url: '/biz/allmaintenance/' + allMaintenanceId,
    method: 'delete'
  })
}
// 导出养护方案计划
export function exportAllmaintenance(query) {
  return request({
    url: '/biz/allmaintenance/export',
    method: 'get',
    params: query
  })
}
